﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Account_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Login1_LoggingIn(object sender, LoginCancelEventArgs e)
    {
        TextBox txt验证码 = this.Login1.FindControl("txt验证码") as TextBox;
        Label lbl = this.Login1.FindControl("lbl提示信息") as Label;
        if (txt验证码.Text.ToString() != Session["check"].ToString())
        {
            e.Cancel = true;
            lbl.Text = "验证码错误！";
        }
    }
}